<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
       

<h:head><link rel="StyleSheet" type="text/css" href="css/estilo.css" media="screen" /></h:head> 
<body> 
<h:form>
	<p:panel header="PESQUISAR CLIENTE">  
        <h:panelGrid columns="2" cellpadding="5"> 
        	<h:outputText value="Nome: " />  
            <p:inputText/> 
            <h:outputText value="CPF: " />  
            <p:inputMask mask="999.999.999-99"/>    
        </h:panelGrid> 
            <p:commandButton value="Confirmar" update="display" oncomplete="dialog.show()"/> 
    </p:panel>
    
	<p:dialog widgetVar="dialog" modal="true" position="top">  
        <h:panelGrid id="display" columns="2" cellpadding="5"> 
        <h:outputText value="Número de CPF não localizado!" />
        <br/>
        </h:panelGrid> 
        <p:button value="Cadastrar Cliente" outcome="/CadCliente.jsf" target="centro"/> 
        <p:button value="Nova Pesquisa" outcome="/PesCliente.jsf" target="centro"/>
    </p:dialog>  
</h:form>
</body> 
</html>
